<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>表单练习一</title>
  </head>
  <body>
    <form action="register.php" method="POST">
      <label for="name">账号：</label>
      <input type="text" name="name" id="name" placeholder="必填项" required />
      <br />
      <label for="password">密码：</label>
      <input type="password" name="password" id="password" placeholder="必填项" required />
      <br />
      <label for="">性别：</label>
      <label for="boy">男</label> <input type="radio" name="sex" value="0" id="boy" checked />
      <label for="girl">女</label><input type="radio" name="sex" value="1" id="girl" /> <label for="no">保密</label
      ><input type="radio" name="sex" value="2" id="no" />
      <br />
      <label for="province">地址-省份：</label>
      <select name="province" id="province">
        <option value="0">选择省份</option>
        <option value="1">广西</option>
        <option value="2">广东</option>
        <option value="3">上海</option>
        <option value="4">北京</option>
      </select>
      <br />
      <label for="address">详细地址：</label>
      <textarea name="address" id="address" cols="30" rows="10"></textarea>
      <br />
      <button>提交</button>
    </form>
  </body>
</html>
